package com.nebula.common;

/**
 * @author CcccX
 * @create 2019-01-09 15:31
 */
public enum ResultCode {
    SUCCESS(20000,"SUCCESS"),
    ERROR(20001,"ERROR"),
    NEED_LOGIN(20010,"用户未登录，请登录");

    private final int code;
    private final String desc;

    ResultCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
